#ifndef WIDGET_H
#define WIDGET_H

#include <QWidget>
#include <audio.h>
#include <speech.h>
#include <image.h>
#include <QDebug>
#include <QSslSocket>
#include <QTimer>
#include <QTime>
#include <QFileDialog>
#include <QCoreApplication>
#include <QMessageBox>
#include <imageencode.h>
#include<QMap>
#include<QJsonObject>
#include<QJsonDocument>
#include<QTableWidgetItem>
//qt version:6.7.2
QT_BEGIN_NAMESPACE
namespace Ui { class Widget; }
QT_END_NAMESPACE

class Widget : public QWidget
{
    Q_OBJECT
private:
    Ui::Widget *ui;
    Audio *m_audio;
    Speech *m_speech;
    image *img;
    QString ImageFileName;
public:
    Widget(QString Loginparam,QWidget *parent = nullptr);
    Widget(QWidget *parent = nullptr);
    void CheckAndUpdateLastLoginTime(QString userName);
    ~Widget();
public slots:
    void on_SpeakButton_pressed();
    void on_SpeakButton_released();
    void on_ClearButton_clicked();
    void on_AudioButton_clicked();
    void on_ImageButton_clicked();
    void on_OpenFileButton_clicked();
    void on_ImageReconButton_clicked();
    void on_UserManaButton_clicked();
    void on_SelectButton_clicked();
    void on_AddButton_clicked();
private slots:
    void on_DeleteButton_clicked();
    void on_UpdateButton_clicked();
};
#endif // WIDGET_H
